

import express from 'express';
const router = express.Router();
import userManagement from "../controller/admin/user_management.js";
import role_management from "../controller/admin/role_management";
import menu_management  from '../controller/admin/menu_management'
const UserManagement = new userManagement();
const Role_management = new role_management();
const Menu_management = new menu_management();

// 用户登录 注册 变更用户信息 相关接口
// router.all('*', userManagement.verify_jwt)
router.post('/user_management/get_list', UserManagement.get_list);
router.post('/user_management/do_edit', UserManagement.do_edit);
router.post('/user_management/do_delete', UserManagement.do_delete);


router.post('/role_management/get_list', Role_management.get_list);
router.post('/role_management/do_edit', Role_management.do_edit);
router.post('/role_management/do_delete', Role_management.do_delete);


router.post('/menu_management/get_tree', Menu_management.get_tree);
router.post('/menu_management/do_edit', Menu_management.do_edit);
router.post('/menu_management/do_delete', Menu_management.do_delete);

export default router
